- card_errors_config = prepare_error_app_data(project_registry)

.card-body
  .container.m-0.p-0
    .row
      .col-sm
        .project-status-title.text-muted
          = s_('Geo|Status')
        = geo_registry_status(project_registry)
      .col-sm.mt-3.mt-sm-0
        .project-status-title.text-muted
          = s_('Geo|Next sync scheduled at')
        .project-status-content
          - if project_registry.repository_retry_at
            = distance_of_time_in_words(Time.now, project_registry.repository_retry_at)
          - else
            = s_('Geo|Waiting for scheduler')
      .col-sm.mt-3.mt-sm-0
        .project-status-title.text-muted
          = s_('Geo|Last sync attempt')
        .project-status-content
          - if project_registry.last_repository_synced_at
            = time_ago_with_tooltip(project_registry.last_repository_synced_at, placement: 'bottom')
          - else
            = s_('Geo|Waiting for scheduler')

.project-card-errors.js-project-card-errors{ data: { config: card_errors_config } }
